package Jobs;

import java.util.List;

import common.TVRageRequest;

import models.Serie;
import play.jobs.*;

@On("0 0 3 * * ?")
public class UpdateSeries extends Job {
    
    public void doJob() {
        
		List<Serie> series = Serie.getSeriesNotEnded();

    	for (Serie s : series) {
    		TVRageRequest.updateSerie(s);
    	}
    }
    
}
